local hx__haqi = fk.CreateSkill {
  name = "hx__haqi",
  tags = { Skill.Compulsory, },

}

hx__haqi:addEffect(fk.BeforeDrawCard, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(hx__haqi.name) and player:usedSkillTimes(hx__haqi.name) < 20 and target:getMark("@@hx__minga-round") == 0 and data.num > 1
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    data.num = 0
    for _, p in ipairs(room.alive_players) do
      p:drawCards(1, hx__haqi.name)
    end
  end,
})

return hx__haqi